package com.bdqn.tsyyds.service.book;

import com.bdqn.tsyyds.entity.BookInfo;
import com.bdqn.tsyyds.repository.BookInfoRepostiory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class BookInfoServicelmp implements BookInfoService {
    @Resource
    BookInfoRepostiory bookInfoRepostiory;

    @Override
    public List<BookInfo> finall() {
        return bookInfoRepostiory.findAll();
    }

    @Override
    public List<BookInfo> finByid(int id) {
        return bookInfoRepostiory.findById(id);
    }


}
